Spread for ASP.NET 8.0 Product Documentation
ComboBoxCellType Constructor(String[],String[])
Example 


Items for the list specified in a string array
Values for the list items specified in a string array
Creates a new combo box cell with the specified items in the combo box list and values.
Syntax
'Declaration
 
Public Function New( _
   ByVal items() As String, _
   ByVal values() As String _
)
'Usage
 
Dim items() As String
Dim values() As String
 
Dim instance As New ComboBoxCellType(items, values)
public ComboBoxCellType( 
   string[] items,
   string[] values
)

Parameters

items
Items for the list specified in a string array
values
Values for the list items specified in a string array
Example
This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes.
string[] cbstr;
string[] strval; 
cbstr = new String[] {"One", "Two", "Three"};
strval = new String[] {"1", "2", "3"};
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType(cbstr, strval);
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
Dim cbstr As String()
cbstr = New String() {"One", "Two", "Three"}
Dim strval As String()
strval = New String() {"1", "2", "3"}
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType(cbstr, strval)
FpSpread1.ActiveSheetView.Columns(0).CellType = cb
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members
Overload List
Items Property

 

 


Copyright © GrapeCity, inc. All rights reserved.